<?php echo '';exit;?>
		<!--{eval}-->
function klp_getspic($tid,$num,$type=''){
	if($type == 'klp_cpicnums') {
		return count(DB::fetch_all('SELECT tableid FROM '.DB::table('forum_attachment').' WHERE tid = '.$tid));
	}
	foreach (DB::fetch_all('SELECT tableid FROM '.DB::table('forum_attachment').' WHERE tid = '.$tid) as $klp_getpicinfo){
		foreach ($getdata = DB::fetch_all('SELECT * FROM '.DB::table('forum_attachment_'.$klp_getpicinfo['tableid'].'').' WHERE tid = '.$tid . '  LIMIT  0 ,'.$num) as $klp_getspic){
			
			if($type == 'klp_cpicsomes'){
				$klp_picarr[$klp_getspic['aid']] = getforumimg($klp_getspic['aid'],'0','300','300');
			}else{
				$klp_picarr[$klp_getspic['aid']] = getforumimg($klp_getspic['aid'],'0','160','160');
			}
		}
		break;
	}
	return $klp_picarr;
}
require_once(DISCUZ_ROOT."./source/function/function_post.php");
<!--{/eval}-->

		<div class="klp_con" >
			
			<div class="threadlist cl klp_tilists">
							<ul id="thread_types" class="ttp bm cl">
				<li $currentview['hot']><a href="forum.php?mod=guide&view=hot">{lang guide_hot}</a></li>
				<li $currentview['digest']><a href="forum.php?mod=guide&view=digest">{lang guide_digest}</a></li>
				<li $currentview['new']><a href="forum.php?mod=guide&view=new">{lang guide_new}</a></li>
				<li $currentview['newthread']><a href="forum.php?mod=guide&view=newthread">{lang guide_newthread}</a></li>
				<li $currentview['sofa']><a href="forum.php?mod=guide&view=sofa">{lang guide_sofa}</a></li>
				<li $currentview['my']><a id="filter_specialm" href="forum.php?mod=guide&view=my" onmouseover="showMenu(this.id)">{lang guide_my}</a></li>
				<!--{hook/guide_nav_extra}-->
			</ul>

						<ul id="mothreadlisttableid" style="position: relative;">                
					<!--{if $list['threadcount']}-->
						<!--{loop $list['threadlist'] $key $thread}-->

							<!--{if $thread['displayorder'] > 0 && !$displayorder_thread}-->
								{eval $displayorder_thread = 1;}
							<!--{/if}-->
							<!--{if $thread['moved']}-->
								<!--{eval $thread[tid]=$thread[closed];}-->
							<!--{/if}-->
							<!--{eval $klp_cpicnums = klp_getspic($thread[tid],1,'klp_cpicnums');}-->


							<li id="mo_$thread[id]"{if $_G['hiddenexists'] && $thread['hidden']} style='display:none'{/if}>
								<a class="klp_imglistm" href="forum.php?mod=viewthread&tid=$thread[tid]&extra=$extra">

								<div class="klp_thlisthead">
										<div class="klp_ftou"><!--{avatar($thread[authorid],small)}--></div>
										<h4>
											<div class="count y">
												<span class="chakan icon"><!--{if $thread['isgroup'] != 1}-->$thread[views]<!--{else}-->{$groupnames[$thread[tid]][views]}<!--{/if}--></span>
												<span class="huifu icon">{$thread[replies]}</span>
											</div>
											$thread[author]   发布于 $thread[dateline]
										</h4>

									</div>
									<!--{if $klp_cpicnums !== 1}-->

									<h3 class="klp_listtitle">
										<!--{if $thread['special'] == 1}-->
											<span class="threadType">{lang thread_poll}</span>
										<!--{elseif $thread['special'] == 2}-->
											<span class="threadType">{lang thread_trade}</span>
										<!--{elseif $thread['special'] == 3}-->
											<span class="threadType">{lang thread_reward}</span>
										<!--{elseif $thread['special'] == 4}-->
											<span class="threadType">{lang thread_activity}</span>
										<!--{elseif $thread['special'] == 5}-->
											<span class="threadType">{lang thread_debate}</span>
										<!--{elseif in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
											<span class="jinghuatie">顶</span>
										<!--{elseif $thread['digest'] > 0}-->
											<span class="jinghuatie">精</span>
										<!--{/if}-->
										<span  $thread[highlight]>{$thread[subject]}</span>
									</h3>
									<!--{/if}-->
									<!--{if $klp_cpicnums >= 2}-->
										<!--{eval $width=$klp_cpicnums==2?'300':'200';}-->
										<!--{eval $height=$klp_cpicnums==2?'180':'200';}-->
										<div class="klp_imglistsome <!--{if $klp_cpicnums == 2}-->twopic<!--{/if}--> mt20  cl">
											<ul class="cl">
												{eval $klp_cpicsomes=klp_getspic($thread[tid],3,'klp_cpicsomes');}
												{eval $i=1;} 
												<!--{loop $klp_cpicsomes $key}-->                        
												<li><span><img src="$key" ></span></li>
												{eval $i++;} 
												<!--{/loop}-->
											</ul>
										</div>

									<!--{elseif $klp_cpicnums == 1}-->
										<div class="klp_imglistonly cl">
											<div class="klp_nei">
												<h3 class="klp_listtitle">
													<!--{if $thread['special'] == 1}-->
														<span class="threadType">{lang thread_poll}</span>
													<!--{elseif $thread['special'] == 2}-->
														<span class="threadType">{lang thread_trade}</span>
													<!--{elseif $thread['special'] == 3}-->
														<span class="threadType">{lang thread_reward}</span>
													<!--{elseif $thread['special'] == 4}-->
														<span class="threadType">{lang thread_activity}</span>
													<!--{elseif $thread['special'] == 5}-->
														<span class="threadType">{lang thread_debate}</span>
													<!--{elseif in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
														<span class="jinghuatie">顶</span>
													<!--{elseif $thread['digest'] > 0}-->
														<span class="jinghuatie">精</span>
													<!--{/if}-->
													<span  $thread[highlight]>{$thread[subject]}</span>
												</h3>


											</div>
											<div class="klp_imgonlym">
												{eval $klp_cpicsomes=klp_getspic($thread[tid],1,'klp_cpicsomes');}
												<img src="{echo current($klp_cpicsomes)}" />
											</div>

										</div>

									<!--{/if}-->
										   <div class="klp_clear"></div>
										   <div class="cl klp_msstie"><p><!--{echo messagecutstr(DB::result_first('SELECT `message` FROM '.DB::table('forum_post').' WHERE `tid` ='.$thread[tid].' AND `first` =1'),99)}--></p></div>
								</a>
							</li>
						<!--{/loop}-->
					<!--{else}-->
						<li class="hasnone">{lang forum_nothreads}</li>
					<!--{/if}-->
					</ul>
	
			 </div>
		
		</div>